package ssol;

import java.util.HashMap;
import java.util.Map;

public class Thermometer {
	private Map<String, Double> locationCelsiousMap = new HashMap<String, Double> ();
	
	public void setCelsius(String location, Double value){
		locationCelsiousMap.put(location, value);
	}
	
	public Double getCelsius(String location){
		return locationCelsiousMap.get(location);
	}
	
	public Double getFahrenheit(String location){
		Double celsius = getCelsius(location);
		if(celsius == null){
			return null;
		}
		return celsius.doubleValue() * 1.8 * 32.0;
	}
	
	public String getInfo(){
		return "Transfer Thermometer 1.1";
	}
}
